function initEditor(option){
	this.ctx = option.ctx;
	this.sceneId = option.sceneId;
	this.scene;
	this.isEdit=true;
	let _this=this;

	layer.load(2);
	var res = common_ajax.ajaxFunc('get', _this.ctx + "/scene/findById", {sceneId:this.sceneId}, "json", null);
	layer.closeAll('loading');
	if(200==res.code){
		_this.scene=res.data;
		_this.globe = new VFG.Map('mars3dContainer', {
			geocoder:true,
		    contextOptions: {
		        webgl: {
		          alpha: true,
		          depth: true,
		          stencil: true,
		          antialias: true,
		          premultipliedAlpha: true,
		          preserveDrawingBuffer: true,
		          failIfMajorPerformanceCaveat: true
		        }
		    },
		    sceneMode:Cesium.SceneMode.SCENE3D
		});
		/*_this.globe.viewer.camera.percentageChanged = 0.01;
		_this.globe2D = new VFG.Map('mars2dContainer', {
			geocoder:true,
			sceneMode:Cesium.SceneMode.SCENE2D,
		    contextOptions: {
		        webgl: {
		          alpha: true,
		          depth: true,
		          stencil: true,
		          antialias: true,
		          premultipliedAlpha: true,
		          preserveDrawingBuffer: true,
		          failIfMajorPerformanceCaveat: true
		        }
		    },
		});*/
		/*_this.globe.viewer.camera.changed.addEventListener(function(){
				let viewCenter = new Cesium.Cartesian2(
					Math.floor(_this.globe.viewer.canvas.clientWidth / 2),
					Math.floor(_this.globe.viewer.canvas.clientHeight / 2)
				);
				let newWorldPosition = _this.globe.viewer.scene.camera.pickEllipsoid(viewCenter);
				if (Cesium.defined(newWorldPosition)) {
					this.worldPosition = newWorldPosition;
				}
				this.distance = Cesium.Cartesian3.distance(
					this.worldPosition,
					_this.globe.viewer.scene.camera.positionWC
				);
				this.globe2D.viewer.scene.camera.lookAt(
					this.worldPosition,
					new Cesium.Cartesian3(0.0, 1, this.distance)
				);
		});*/
		
		_this.sceneHeader=new SceneHeader({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		_this.sceneLayer=new SceneLayer({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		_this.sceneEvent=new SceneEvent({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		_this.sceneMouseRM=new SceneMouseRM({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		_this.scenePopup=new ScenePopup({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		_this.sceneEditor=new SceneEditor({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		_this.sceneOnlineMap=new SceneOnlineMap({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});
		
		
		_this.sceneModelLibrary=new SceneModelLibrary({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});	
		
		_this.scene3dtitle=new Scene3dtitle({
			ctx:_this.ctx,
			sceneId:_this.sceneId,
			editor:_this,
		});	

		_this.sceneVideoFusion=new SceneVideoFusion({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});	
		
		_this.scenePointLibrary=new ScenePointLibrary({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});	
		
		_this.scenePolylineLibrary=new ScenePolylineLibrary({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});
		
		_this.sceneWallLibrary=new SceneWallLibrary({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});
		
		_this.scenePlanLibrary=new ScenePlanLibrary({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});
		
		
		_this.sceneUtil=new SceneUtil({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});
		
		_this.sceneRoadMark=new SceneRoadMark({
			ctx:_this.ctx,
			editor:_this,
			sceneId:_this.sceneId,
		});
		loadSceneResources(_this);
		
		//loadSceneResources2D(_this);
		_this.globe.openFlyAnimation({
			position:{x:_this.scene.x,y:_this.scene.y,z:_this.scene.z},
			orientation:{heading:_this.scene.heading,pitch:_this.scene.pitch,roll:_this.scene.roll},
			complete:function(){
			}
		})
		
	}else{
		layer.msg(res?res.message:'异常！', {icon: 2});
	}
	return _this;
}

function loadSceneResources(_this){
	layer.load(2);
	var res = common_ajax.ajaxFunc('get',_this.ctx + "/scene/getResources", { sceneId:_this.sceneId}, "json", null);
	layer.closeAll('loading');
	if (200 == res.code) {
		_this.globe.renders(res.data,_this.ctx);
	}
	
}

/*function loadSceneResources2D(_this){
	layer.load(2);
	var res = common_ajax.ajaxFunc('get',_this.ctx + "/scene/getResources", { sceneId:_this.sceneId}, "json", null);
	layer.closeAll('loading');
	if (200 == res.code) {
		_this.globe2D.renders(res.data,_this.ctx);
	}
}*/

